package com.hr.mes.entity;

public class Permission {

    private Integer id;

    /**
     * 权限码，如user.add
     */
    private String code;

    private String description;

    public Permission() {
    }

    public Permission(Integer id, String code) {
        this.id = id;
        this.code = code;
    }

    public Permission(Integer id, String code, String description) {
        this.id = id;
        this.code = code;
        this.description = description;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return "Permission{" +
                "id=" + id +
                ", code='" + code + '\'' +
                ", description='" + description + '\'' +
                '}';
    }
}
